let Web3 = require('D:\\software\\nodejs\\node_global\\node_modules\\web3')
let web3 = new Web3()
let {bytecode,interface1 } = require("./compile")
console.log(interface1)
console.log('这是bytecode',bytecode)
web3.setProvider("http://localhost:7545")
console.log(web3.currentProvider)

let contract = new web3.eth.Contract(JSON.parse(interface1))
contract.deploy({
    data:bytecode,
}).send({
    from:'0xD5fFa32A808970FAb637AeE4ca70e00888B3e4D8',
    gas: 1500000,
    gasPrice: '30000000000000'
}).then(function (newInstance) {
    console.log("得到的合约的地址:",newInstance.options.address)
})
